package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.po.Person;
import com.po.PersonExample;

public interface PersonMapper {
	int countByExample(PersonExample example);

	int deleteByExample(PersonExample example);

	int insert(Person record);

	int insertSelective(Person record);

	List<Person> selectByExample(PersonExample example);

	int updateByExampleSelective(@Param("record") Person record, @Param("example") PersonExample example);

	int updateByExample(@Param("record") Person record, @Param("example") PersonExample example);

	@Select("select * from person where name=#{name}")
	List<Person> findByName(@Param("name") String name);
}